<!-- despesas/_form -->
<%= form.hidden_field :conta_id, :value => params[:conta_id] if params[:conta_id] %>

<% unless params[:conta_id] %>
	<div>
		<%= form.label :conta_id %>
		<%= form.collection_select :conta_id,
			current_usuario.contas_ativas, :id, :nome,
			{ :prompt => true } %>
	</div>
<% end %>

<div>
	<%= form.label :data %>
	<%= form.text_field :data,
		:class => "datepicker",
		:value => (!form.object.data.nil?) ? I18n.localize(form.object.data) : nil %>
</div>

<div>
	<%= form.label :valor %>
	<%= form.text_field :valor, :class => "valor", :autocomplete => "off" %>
</div>

<div>
	<%= form.label :observacao %>
	<%= form.text_field :observacao %>
</div>

<div>
	<%= form.label :quitada %>
	<%= form.check_box :quitada, {}, "true", "false" %>
</div>

